# -*- coding: UTF-8 -*-
from direct.showbase.DirectObject import DirectObject
from panda3d.core import AmbientLight,DirectionalLight,Vec3,Vec4
class Lighting():
    def __init__(self):
        return
    @staticmethod
    def SetLight1( ):
                # Create some lighting
        ambientLight = AmbientLight("ambientLight")
        ambientLight.setColor(Vec4(.3, .3, .3, 1))
        directionalLight = DirectionalLight("directionalLight")
        directionalLight.setDirection(Vec3(-5, -5, -5))
        directionalLight.setColor(Vec4(1, 1, 1, 1))
        directionalLight.setSpecularColor(Vec4(1, 1, 1, 1))
        render.setLight(render.attachNewNode(ambientLight))
        render.setLight(render.attachNewNode(directionalLight))